package team.knowers.qzh.qzhserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.qzh.qzhserver.dao.entity.UserSubjectDO;
import team.knowers.qzh.qzhserver.dto.req.SetAsMySubjectReqDTO;

/**
 * @author xtg
 */
public interface MySubjectService extends IService<UserSubjectDO> {
    /**
     * 某用户设置某专业为我的专业
     */
    Boolean setSubjectAsMySubject(SetAsMySubjectReqDTO reqDTO);

    /**
     * 返回某用户的专业
     */
    Long getUserSubject(String username);

    /**
     * 判断某专业是否被某用户关注
     */
    Boolean isMySubject(String username, Long subjectId);
}
